package com.woniuxy01;

/**
 * @author 作者
 * @create 2025-09-08 10:00
 */
public class Student {
    String name;
    //成员变量，定义时赋值或者构造方法中赋值
    final int age=5;
    final int score;
    public static final double PI=3.14;

    public Student() {
        score=100;
    }

    public Student(int score, String name) {
        this.score = score;
        this.name = name;
    }

    public void test(){
        name="aaa";
//        age=2;
//        score=100;
        System.out.println(age);
    }
}
